package com.community.service;

import com.community.pojo.Consumer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.community.utils.PageUtils;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
public interface IConsumerService extends IService<Consumer> {
    /**
     * 前台的注册用户
     * @param consumers
     */
    void addConsumers(Consumer consumers);
    /**
     *查询方法
     * @param pageNo
     * @param pageSize
     * @param consumers
     * @return
     */
    PageUtils<Consumer> getConsumersList(Consumer consumers, int  pageNo, int pageSize);

    /**
     * 删除
     * @param consumers
     */
    void delConsumer(Consumer consumers);

    /**
     * 批量删除
     * @param consumersList
     */
    void delsConsumer(List<Consumer> consumersList);
    /**
     * 用户冻结/正常
     * @param consumer
     */
    void switchState(Consumer consumer);
}
